package com.dengcj.epl.enums.ecology.hrm;

/**
 * 人员状态枚举
 * 0：试用 OnProbation
 * 1：正式 Regular
 * 2：临时 Temporary
 * 3：试用延期 DelayOnProbation
 * 4：解聘 Fired
 * 5：离职 Dimission
 * 6：退休 Retire
 * 7：无效 Invalid
 */
public enum UserStatus {
    OnProbation(0, "试用"),
    Regular(1, "正式"),
    Temporary(2, "临时"),
    DelayOnProbation(3, "试用延期"),
    Fired(4, "解聘"),
    Dimission(5, "离职"),
    Retire(6, "退休"),
    Invalid(7, "无效");

    private int index;
    private String name;

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    UserStatus(int index, String name){
        this.index = index;
        this.name = name;
    }
}
